<?php
/* 
 * ********* CVS HEADER ********* 
 * 
 * $RCSfile: useraff.php,v $ 
 * $Date: 2007/04/16 09:57:18 $ 
 * $Revision: 1.3 $ 
 * 
 * ********* CVS HEADER ********* 
 */
require_once("module/TPLN/TPLN.php");
$TPLN = new TPLN;

$TPLN -> Open($op_basepath."tpl/useraff.html");
$TPLN -> IncludeFile("header", "environnement/" . $session["environnement"] . "/header.php");
$TPLN -> IncludeFile("footer", "environnement/" . $session["environnement"] . "/footer.php");

$query="SELECT * FROM utilisateur WHERE id='".$session['id_user']."'";

$result = rportalrequete($query) or rportalerreur($query, "?op=");

if ($row = rportalligne($result)) {
	$TPLN -> Parse("login", $row["login"]);
	$TPLN -> Parse("nom", $row["nom"]);
	$TPLN -> Parse("prenom", $row["prenom"]);
	$TPLN -> Parse("email", $row["email"]);
}

require_once(get_path_module("admin")); 
$pc = new panneau_controle(); 
$pc->calculRubriqueParFonction($op); 
$TPLN->Parse("panneau_controle",$pc->retourneEntete());

$TPLN->Write();
?>